.class Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;
.super Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector$SimpleOnScaleGestureListener;
.source "MultiTouchListener.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ScaleGestureListener"
.end annotation


# instance fields
.field private mPivotX:F

.field private mPivotY:F

.field private mPrevSpanVector:Lcom/zuimeia/ui/touchdetector/Vector2D;

.field final synthetic this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;


# direct methods
.method private constructor <init>(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)V
    .registers 3

    .prologue
    .line 231
    iput-object p1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-direct {p0}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector$SimpleOnScaleGestureListener;-><init>()V

    .line 235
    new-instance v0, Lcom/zuimeia/ui/touchdetector/Vector2D;

    invoke-direct {v0}, Lcom/zuimeia/ui/touchdetector/Vector2D;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPrevSpanVector:Lcom/zuimeia/ui/touchdetector/Vector2D;

    return-void
.end method

.method synthetic constructor <init>(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$1;)V
    .registers 3
    .param p1, "x0"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener;
    .param p2, "x1"    # Lcom/zuimeia/ui/touchdetector/MultiTouchListener$1;

    .prologue
    .line 231
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;-><init>(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)V

    return-void
.end method


# virtual methods
.method public onScale(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;)Z
    .registers 7
    .param p1, "view"    # Landroid/view/View;
    .param p2, "detector"    # Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    .prologue
    const/4 v2, 0x0

    .line 267
    new-instance v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    const/4 v3, 0x0

    invoke-direct {v0, v1, v3}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;-><init>(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$1;)V

    .line 268
    .local v0, "info":Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-boolean v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isScaleEnabled:Z

    if-eqz v1, :cond_61

    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getScaleFactor()F

    move-result v1

    :goto_13
    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaScale:F

    .line 269
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-boolean v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isRotateEnabled:Z

    if-eqz v1, :cond_64

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPrevSpanVector:Lcom/zuimeia/ui/touchdetector/Vector2D;

    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getCurrentSpanVector()Lcom/zuimeia/ui/touchdetector/Vector2D;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/zuimeia/ui/touchdetector/Vector2D;->getAngle(Lcom/zuimeia/ui/touchdetector/Vector2D;Lcom/zuimeia/ui/touchdetector/Vector2D;)F

    move-result v1

    :goto_25
    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaAngle:F

    .line 271
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-boolean v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isTranslateEnabled:Z

    if-eqz v1, :cond_66

    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getFocusX()F

    move-result v1

    iget v3, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotX:F

    sub-float/2addr v1, v3

    :goto_34
    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaX:F

    .line 272
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-boolean v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->isTranslateEnabled:Z

    if-eqz v1, :cond_44

    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getFocusY()F

    move-result v1

    iget v2, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotY:F

    sub-float v2, v1, v2

    :cond_44
    iput v2, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->deltaY:F

    .line 274
    iget v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotX:F

    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->pivotX:F

    .line 275
    iget v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotY:F

    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->pivotY:F

    .line 276
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->minimumScale:F

    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->minimumScale:F

    .line 277
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget v1, v1, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->maximumScale:F

    iput v1, v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;->maximumScale:F

    .line 279
    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # invokes: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->move(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V
    invoke-static {v1, p1, v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$700(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;Landroid/view/View;Lcom/zuimeia/ui/touchdetector/MultiTouchListener$TransformInfo;)V

    .line 281
    const/4 v1, 0x0

    return v1

    .line 268
    :cond_61
    const/high16 v1, 0x3f800000

    goto :goto_13

    :cond_64
    move v1, v2

    .line 269
    goto :goto_25

    :cond_66
    move v1, v2

    .line 271
    goto :goto_34
.end method

.method public onScaleBegin(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;)Z
    .registers 5
    .param p1, "view"    # Landroid/view/View;
    .param p2, "detector"    # Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    .prologue
    .line 240
    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getFocusX()F

    move-result v0

    iput v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotX:F

    .line 241
    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getFocusY()F

    move-result v0

    iput v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPivotY:F

    .line 242
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->mPrevSpanVector:Lcom/zuimeia/ui/touchdetector/Vector2D;

    invoke-virtual {p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;->getCurrentSpanVector()Lcom/zuimeia/ui/touchdetector/Vector2D;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/zuimeia/ui/touchdetector/Vector2D;->set(Landroid/graphics/PointF;)V

    .line 244
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_61

    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v0

    if-eq v0, p1, :cond_61

    .line 245
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getTranslationX()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$202(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 246
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getTranslationY()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$302(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 247
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getRotation()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginRotation:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$402(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 248
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getScaleX()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginScale:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$502(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 251
    :cond_61
    const/4 v0, 0x1

    return v0
.end method

.method public onScaleEnd(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;)V
    .registers 5
    .param p1, "view"    # Landroid/view/View;
    .param p2, "detector"    # Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;

    .prologue
    .line 256
    invoke-super {p0, p1, p2}, Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector$SimpleOnScaleGestureListener;->onScaleEnd(Landroid/view/View;Lcom/zuimeia/ui/touchdetector/ScaleGestureDetector;)V

    .line 257
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_4f

    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v0

    if-eq v0, p1, :cond_4f

    .line 258
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getTranslationX()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationX:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$202(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 259
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getTranslationY()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginTranslationY:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$302(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 260
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getRotation()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginRotation:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$402(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 261
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    iget-object v1, p0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener$ScaleGestureListener;->this$0:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    # getter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mTargetView:Landroid/view/View;
    invoke-static {v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$100(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getScaleX()F

    move-result v1

    # setter for: Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->mOriginScale:F
    invoke-static {v0, v1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->access$502(Lcom/zuimeia/ui/touchdetector/MultiTouchListener;F)F

    .line 263
    :cond_4f
    return-void
.end method
